/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ${USER}
 * Date: ${YEAR}-${MONTH}-${DAY}
 * Time: ${TIME}
 */
public class Main {
    public static void main(String[] args) {
        int[] array = new int[]{10,24,13,22,35,12,23,21};
        MyHeap myHeap = new MyHeap(array);
        myHeap.createHeap();
        myHeap.push(22);
        myHeap.push(19);
        myHeap.push(9);
        myHeap.pollHeap();
        myHeap.pollHeap();
        myHeap.pollHeap();
        myHeap.pollHeap();
        myHeap.pollHeap();
        myHeap.pollHeap();
        myHeap.pollHeap();
        myHeap.pollHeap();
        myHeap.pollHeap();
        myHeap.pollHeap();
        System.out.println(myHeap.isFull());
        System.out.println(myHeap.peekHeap());
    }
}